﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Auditing;
using Volo.Abp.Domain.Entities;

namespace My.Domain.Comments
{
    /// <summary>
    /// 评论实体
    /// </summary>
    public class Comment : Entity<Guid>, IHasCreationTime
    {
        private Comment() { }

        public Comment(Guid id, string text,Guid userId) : base(id)
        {
            Text = text;
            UserId = userId;
        }

        public string Text { get; set; }

        public DateTime CreationTime { get; set; }

        /// <summary>
        /// 问题的Id
        /// </summary>
        public Guid IssueId { get; set; }

        /// <summary>
        /// 用户(领域)的Id
        /// </summary>
        public Guid UserId { get; set; }
    }
}
